package io1;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class WriteStringDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos=new FileOutputStream("fos.ttw",true);
        String wwt="刘思甜大笨猪，吃白菜，啃萝卜";
        byte[] sst=wwt.getBytes(StandardCharsets.UTF_8);
        fos.write(sst);
        fos.write("肚量大".getBytes(StandardCharsets.UTF_8));
        System.out.println("写入完毕");
        fos.close();
    }
}
